
cc := gcc

fopen_fclose: 01_fopen_fclose.c
	$(cc) $^ -o $@
	./$@

write: 02_write.c
	$(cc) $^ -o $@
	./$@

read: 03_read.c
	$(cc) $^ -o $@
	./$@


system_func: 04_system_func.c
	$(cc) $^ -o $@
	./$@



#引入伪目标
.PHONY:stdio

stdio: 05_stdio.c
	$(cc) $^ -o $@
	./$@ 1>>log.txt 2>>error.txt


perror: 06_perror.c
	$(cc) $^ -o $@
	./$@ 




#引入伪目标
.PHONY:clear
clear:
	-rm fopen_fclose write read system_func lift2.txt